﻿using System;
using System.Linq.Expressions;

namespace Hippo.Core
{
    public class Specification<T> : ISpecification<T>
    {
        protected Expression<Func<T, bool>> satisfyExpression;

        public Specification(Expression<Func<T, bool>> satisfyExpression)
        {
            this.satisfyExpression = satisfyExpression;
        }

        public Expression<Func<T, bool>> SatisfiedBy
        {
            get { return satisfyExpression; }
        }
    }
}
